const {refuse} = require('../dao/dbserver/friend')
const { deluser } = require('../dao/dbserver/member')
const { delgroup } = require ('../dao/dbserver/other')

exports.Refuse = (req,res,next)=>{
    const {uid,fid} = req.body
   refuse(uid,fid,res)
}

exports.delmember = (req,res,next)=>{
    const {uid,gid} = req.body
    deluser(uid,gid,res)
}

exports.dismissgroup = (req,res,next)=>{
    const {gid} = req.body
    delgroup(gid,res)
}
